aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.S...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-07-23 11:13:22 +0100
committerMichael Williamson <mike@zwobble.org>2023-07-23 11:15:59 +0100
commit179af029a24147ffc09f8b165b7d812b135d3f2d (patch)
treea7e95ff18d542f1b99f3868514940fff7af1e795 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent8e633a6c6f9ed28a24afb4c0ed7219d034850fd4 (diff)
Fix tests for int-add and string-add Patio code gen
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected23
1 files changed, 23 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
new file mode 100644
index 00000000..a0ddbbd8
--- /dev/null
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -0,0 +1,23 @@
+Compilation unit elements:
+
+(
+ function-decl
+ "shed__runtime__string_add"
+ params=(("left" int) ("right" int))
+ return-type=int
+)
+
+Locals:
+ * ("tmp__0" int)
+
+Args:
+
+Instructions:
+
+(
+ (call (local "tmp__0") "shed__runtime__string_add" ((local "b") (local "c")))
+)
+
+Temporary stack:
+ * tmp__0
+ * a